import Layout from '../components/Layout'

// 路由定于

const routes = [
    // 默认首页
    {
        path: '/',
        meta: {
            title: '默认首页',
            icon: '#icon-fl-jia',
            hidden: true,
            requireAuth: true
        },
        component: Layout,
    },
    // 产品管理
    {
        path: '/product',
        meta: {
            title: '产品管理',
            icon: '#icon-chanpin'
        },
        component: Layout,
    },
    // 系统管理
    {
        path: '/system',
        meta: {
            title: '系统管理',
            icon: '#icon-xitong'
        },
        component: Layout,
    },
    // 用户登录
    {
        path: '/login',
        component: () => import('../components/Login'),
        meta: {
            title: '登录',
            icon: '',
            hidden: true
        }
    },
    // 用户注册
    {
        path: '/register',
        component: () => import('../components/Register'),
        meta: {
            title: '注册',
            icon: '',
            hidden: true
        }
    },
    //首页(用户看的界面)
    {
        path:'/index',
        component:()=>import('../components/Index'),
        meta:{
            title:'首页',
            icon:'',
            hidden:true
        }
    }
]



export default routes

